import routerParse from '../../router/utils/route-parse'

let router = {}

let context = require.context('../../views/pages', true, /^(?:(?!components).)+\/(?:([a-zA-Z-_]+\.vue)|(index\.js))$/i, 'lazy')
let jsonContext = require.context('../../views/pages', true, /^(?:(?!components).)+\/[a-zA-Z-_]+\.json$/i)
router = routerParse(context, jsonContext)

export default router
